package com.xsdl.combination.file;

public class Main {

    public static void main(String[] args) {
        DirectoryNode root = new DirectoryNode("1", "/root");
        FileNode rootFile = new FileNode("1-1-1", "/root/file2", 150);
        root.addNode(rootFile);

        DirectoryNode dir1 = new DirectoryNode("1-1", "/root/dir1");
        DirectoryNode dir2 = new DirectoryNode("1-2", "/root/dir2");
        FileNode file1 = new FileNode("1-1-1", "/root/dir1/file1", 100);
        root.addNode(dir1);
        root.addNode(dir2);
        dir1.addNode(file1);

        System.out.println(root.directoryCount());
        System.out.println(root.fileCount());
        System.out.println(root.fileSize());
    }

}
